package com.example.readwrite;

public class Main {
    public static void main(String[] args) {
        SharedData sharedData = new SharedData();
        Thread t1 = new Thread(new ReadTask(sharedData));
        Thread t2 = new Thread(new ReadTask(sharedData));
        Thread t3 = new Thread(new ReadTask(sharedData));

        Thread t4 = new Thread(new WriteTask(sharedData));
        Thread t5 = new Thread(new WriteTask(sharedData));

        t1.start();
        t2.start();
        t3.start();
        t4.start();
//        t5.start();
    }
}
